Skip to content

Conversation

abhishekc-sharma
Copy link
Contributor

My initial attempt at implementing Future::flatten (#404)

Copy link
Contributor

@yoshuawuyts yoshuawuyts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is very much heading in the right direction. Left a small comment about internals. Thanks heaps for picking this up!

@ghost ghost requested a review from taiki-e November 3, 2019 12:43
@ghost
Copy link

ghost commented Nov 3, 2019

I'd be okay with using unsafe methods on the Pin type. This Future combinator would then be just a special case with a little bit of unsafe code that does pin projections.

Copy link
Contributor

@yoshuawuyts yoshuawuyts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! -- going to create a separate PR for @taiki-e's comment in a follow-up PR. Fantastic work @portgasd666!

@yoshuawuyts yoshuawuyts merged commit 9a88056 into async-rs:master Nov 7, 2019
@k-nasa k-nasa mentioned this pull request Nov 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants